package com.tomowork.service.impl;

import com.tomowork.dao.IPermissionDAO;
import com.tomowork.entity.Permission;
import com.tomowork.service.IPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PermissionServiceImpl implements IPermissionService {
    @Autowired
    private IPermissionDAO iPermissionDAO ;

    @Override
    public List<Permission> findPermissionListByUserId(String userId) {
        return iPermissionDAO.selectPermissionListByUserId(userId);
    }
}
